<template>
  <!--这个是首页-->
  <div class="index-page-container">
    <button @click="$router.push('protocol42')">国标消息</button>
    <button @click="$router.push('iot')">IOT消息</button>
    <button @click="openDevtool">开启F12</button>
  </div>
</template>

<script>
import {ipcRenderer} from 'electron'

export default {
  name: 'IndexPage',
  methods: {
    async openDevtool () {
      ipcRenderer.invoke('open-devtools', null)
    }
  }
}
</script>

<style scoped>
.index-page-container {
  padding: 10px;
}
</style>
